package com.handsome.工厂模式.简单工厂模式.简单工厂模式写法2.pizza;

/**
 * pizza抽象类
 * @author niechun
 * @date 2023/1/8 15:41
 */
public abstract class Pizza {

    public abstract void prepare();

    public String name;

    public Pizza() {

    }

    public Pizza(String name) {
        this.name = name;
    }

    public void bake() {
        System.out.println(name + " bake");
    }

    public void cut() {
        System.out.println(name + " cut");
    }

    public void box() {
        System.out.println(name + " box");
    }
}
